﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="AnyOffice.general.Event.manage.edit" %>

<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>编辑安全信息</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script Language="JavaScript">		
		function CheckForm()
		{
			if (document.Form1.txtSubject.value=="")
			{
			    alert("安全信息的标题不能为空！");
				document.Form1.txtSubject.focus();
				return (false);
			}	
			   
			var oEditor = FCKeditorAPI.GetInstance('txtContent');
			if(oEditor.GetHTML() == "")  
			{
			    alert("安全信息的内容不能为空！");
				return (false);
			}
			return true;
		}

		function CheckFile()
		{
			if (document.Form1.fileAttach.value=="")
			{
				alert("请选择附件！");
				return (false);
			}   
			return true;	
		}		
		</script>
	</HEAD>
	<body class="bodycolor" topmargin="5">
		<form id="Form1" method="post" runat="server">
			<asp:Panel id="pnlMain" runat="server">
				<TABLE class="small" cellSpacing="0" cellPadding="3" width="90%" border="0">
					<TR>
						<TD class="Big"><IMG src="/images/edit.gif" align="absMiddle" width="20" height="20"><SPAN class="big3"> 
								编辑安全信息</SPAN>
						</TD>
					</TR>
				</TABLE>
				<br>
				<TABLE class="small" cellSpacing="1" cellPadding="2" width="90%" align="center" border="0" bgcolor="#000000">
					<TR>
						<TD class="TableData" noWrap>标题：</TD>
						<TD class="TableData">
							<asp:TextBox id="txtSubject" runat="server" CssClass="BigInput" MaxLength="200" Columns="50"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>附件：</TD>
						<TD class="TableData">
							<asp:Panel id="pnlAttach" runat="server" Visible="False">
								<asp:ListBox id="ltbFileList" runat="server" Rows="1"></asp:ListBox>
								<asp:button id="btnRemoveFile" runat="server" CssClass="SmallButton" Text="删除" onclick="btnRemoveFile_Click"></asp:button>
							</asp:Panel></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>附件上传：</TD>
						<TD class="TableData"><INPUT class="SmallInput" id="fileAttach" type="file" size="26" name="fileAttach" runat="server">
							<asp:button id="btnAddFile" runat="server" CssClass="SmallButton" Text="添加" onclick="btnAddFile_Click"></asp:button></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>提醒：</TD>
						<TD class="TableData">
							<asp:CheckBox id="ckbSms" runat="server" Text="使用内部短信提醒用户" Checked="False"></asp:CheckBox>
							<asp:CheckBox id="ckbMobile" runat="server" Visible="False" Text="使用手机短信提醒用户"></asp:CheckBox></TD>
					</TR>
					<TR>
						<TD class="TableData" noWrap>详细内容：</TD>
						<TD class="TableData" colSpan="1">
							<FCKeditorV2:FCKeditor id="txtContent" runat="server" Width="100%"  Height="350px"></FCKeditorV2:FCKeditor>
						</TD>
					</TR>
					<TR class="TableControl" align="center">
						<TD noWrap colSpan="2">
							<asp:Button id="btnSubmit" runat="server" CssClass="BigButton" Text="发布" onclick="btnSubmit_Click"></asp:Button>&nbsp;&nbsp;&nbsp;&nbsp;
							<INPUT class="BigButton" onclick="location='index1.aspx'" type="button" value="返回">
						</TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Literal id="litMessage" runat="server"></asp:Literal>
			<br>
			<br>
		</form>
	</body>
</HTML>
